<!DOCTYPE html>
<html>
<head>
    <include file="./public/sty.html"/>
    <style>
        .c-pages{padding:20px 0; text-align: center;}
        .c-pages.tl{text-align: left;}
        .c-pages span{display: inline-block; margin-right: 5px; font-size:12px; height:28px; line-height: 28px;}
        .c-pages span.col{color: #fe344e; font-weight: 600;}
        .c-pages span a{display: inline-block; margin:0 3px; height:28px; line-height: 28px; text-align: center; padding:0 12px; border:1px solid #ccc; text-decoration: none; border-radius: 2px;}
        .c-pages span a:link,.c-pages span a:active,.c-pages span a:visited{color: #333;}
        .c-pages span a:hover{ color: #ff8540; }
        .c-pages span a.active{color: #fff; background: #ff8540;}
        .c-pages  .current{ color: #fff; background: #ff8540; display: inline-block; margin: 0 3px; height: 28px;
            line-height: 28px;
            text-align: center;
            padding: 0 12px;
            text-decoration: none;
            border-radius: 2px;
        }
    </style>
</head>
<body>
<div id="app" class="seekOrder">
    <include file="./public/header.html"/>

    <div class="container pt15 fix" s="[object Object]">
        <div class="slideUser">
            <ul class="sildeSession"><h3><span></span>账号管理</h3>
                <li class=""><a href="{:U('Users/personalInfo')}">个人信息</a></li>
                <li class="curr"><a href="{:U('Users/securityCenter')}">安全中心</a></li>
                <li class=""><a href="{:U('Users/manageBankcard2')}">银行卡管理</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>投注管理</h3>
                <li><a href="{:U('Users/BetRecord')}" class="">投注记录</a></li>
                <li><a href="{:U('Users/seekOrder')}" class="">追号记录</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>资金管理</h3>
                <li><a href="{:U('Users/BillRecord')}" class="">交易记录</a></li>
                <li class=""><a href="{:U('Users/PLstatement')}">今日盈亏</a></li>
            </ul>
            <?php if($wanjia['utype'] == '1'){ ?>
            <ul class="sildeSession">
                <h3><span></span>代理中心</h3>
                <li><a href="{:U('Users/agentIntro')}" class="">代理说明</a></li>
                <li class=""><a href="{:U('Users/agentReport')}">代理报表</a></li>
                <li><a href="{:U('Users/lowerReport')}" class="">下级报表</a></li>
                <li class=""><a href="{:U('Users/manageInvite')}">下级开户</a></li>
                <li><a href="{:U('Users/agentMember')}" class="">会员管理</a></li>
                <li><a href="{:U('Users/agentBetRecord')}" class="">投注明细</a></li>
                <li><a href="{:U('Users/agentBillRecord')}" class="">交易明细</a></li>
            </ul>
            <?php }?>
            <ul class="sildeSession"><h3><span></span>消息管理</h3>
                <li><a href="{:U('Users/letter')}" class="">站内信</a></li>
                <li><a href="{:U('Users/Notice')}" class="">网站公告</a></li>
            </ul>
        </div>
        <div data-v-281f660e="" class="userRight">
            <div data-v-281f660e="" class="userTitle mgb10">追号记录</div>
            <div data-v-281f660e="" class="userMain mgb10">
                <form class="well form-search" method="post" action="{:U('Users/seekOrder')}">
                <ul data-v-be5f85f8="" class="searchFirst" data-v-281f660e="">
                    <li data-v-be5f85f8=""><span data-v-be5f85f8="">彩种：</span>
                        <ins data-v-be5f85f8="" class="selectIcon">
                            <div data-v-be5f85f8="" class="title"><span class="fx_c_name">全部彩票</span>
                                <select name="caizhong" id="caizhong" onchange="xuanze2()" data-v-be5f85f8="" class="userSelect" >
                                    <option value="" >全部彩票</option>
                                    <foreach name="classs" item="v">
                                        <option value="{$v.id}" <?php if($caizhong==$v["id"]){echo "selected";};?>>{$v.name}</option>
                                    </foreach>
                                </select>
                            </div>
                            <em data-v-be5f85f8=""></em>
                        </ins>
                    </li>
                    <li data-v-be5f85f8="" class="_time">
                        <span data-v-be5f85f8="">时间：
                            <a data-v-be5f85f8="" class="userSearch times <?php if($shijian=='1'){echo 'active';}; ?> " data-value="1" onclick="xuanze(this.id)" id="jintian" name="jintian">今天</a>
                            <a data-v-be5f85f8="" class="userSearch times <?php if($shijian=='2'){echo 'active';}; ?>" data-value="2"  onclick="xuanze(this.id)" id="zuotian" name="zuotian" >昨天</a>
                            <a data-v-be5f85f8="" class="userSearch times <?php if($shijian=='3'){echo 'active';}; ?>" data-value="3"  onclick="xuanze(this.id)" id="qitian" name="qitian">七天</a>
                        </span>
                    </li>
                    <li data-v-be5f85f8="" class="_state">
                        <span data-v-be5f85f8="">类型：
                            <a data-v-be5f85f8="" class="userSearch lx <?php if($leixing=='0'){echo 'active';}; ?> " data-id="0" onclick="xuanze3(this.id)" id="quan">全部</a>
                            <a data-v-be5f85f8="" class="userSearch lx <?php if($leixing=='1'){echo 'active';}; ?> " data-id="1" onclick="xuanze3(this.id)" id="yi">未开始</a>
                            <a data-v-be5f85f8="" class="userSearch lx <?php if($leixing=='2'){echo 'active';}; ?> " data-id="2" onclick="xuanze3(this.id)" id="wei">已开始</a>
                            <a data-v-be5f85f8="" class="userSearch lx <?php if($leixing=='3'){echo 'active';}; ?> " data-id="3" onclick="xuanze3(this.id)" id="deng">已结束</a>
                        </span>
                    </li>
                </ul>
               </form>
                <div data-v-281f660e="" class="searchDetail">
                    <table data-v-281f660e="">
                        <tbody data-v-281f660e="">
                        <tr data-v-281f660e="">
                            <th data-v-281f660e="" colspan="1">流水号</th>
                            <th data-v-281f660e="">彩种</th>
                            <th data-v-281f660e="">起始期号</th>
                            <th data-v-281f660e="">已追/总期数</th>
                            <th data-v-281f660e="">已投/总金额</th>
                            <th data-v-281f660e="">奖金状态</th>
                            <th data-v-281f660e="">追号时间</th>
                            <th data-v-281f660e="">操作项</th>
                        </tr>
                        </tbody>
                        <?php if(!empty($arr)){?>
                        <tbody class="Records_listCont">
                        <foreach name="arr" item="v">
                            <tr>
                                <td>{$v.numbers}</td>
                                <td>{$v.classname}</td>
                                <td>{$v.start_num}</td>
                                <td>{$v.num}/{$v.qishus}</td>
                                <td><?php echo sprintf('%.2f',$v['money']); ?>/<?php echo sprintf('%.2f',$v['moneys']); ?></td>
                                <td style="color: red">
                                    <?php if($v['num']=="0"){echo "未开始";}
                                          elseif('0' < $v['num'] && $v['num'] < $v['qishus']){echo "进行中";}
                                          elseif($v['num'] == $v['qishus'] && $v['zo_money']==".000"){echo "已结束";}
                                          elseif($v['num'] == $v['qishus'] && trim($v['zo_money']) < 1 ){echo '0'.sprintf('%.2f',$v['zo_money']);}
                                          elseif($v['num'] == $v['qishus'] && trim($v['zo_money']) >= 1 ){echo sprintf('%.2f',$v['zo_money']);}
                                     ?>
                                </td>
                                <td><?php echo date("Y-m-d H:i:s",$v['ctime']);?></td>
                                <td>
                                    <a  href="{:U('Users/seekDetail',array('lotteryclass'=>$v['lotteryclass'],'table'=>$v['table'],'id'=>$v['id']))}">查看</a>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                        <?php }else{ ?>
                        <div class="Records_listCont" id="t2">
                            <tr style="border-bottom-width: 0px;">
                                <td colspan="100">
                                    <div class="notContent" style="padding: 100px 0px;"><i class="iconfont"></i>暂无记录</div>
                                </td>
                            </tr>
                        </div>
                        <?php }?>
                    </table>
                </div>

                <div class="c-pages tc">
                    <span>{$page}第{$p}页/共{$totalpage}页</span>
                </div>

                <div data-v-281f660e="" class="userTip"><p data-v-281f660e=""><i data-v-281f660e=""></i>温馨提示：追号记录最多只保留7天。
                </p></div>
            </div>
        </div>
    </div>

    <include file="./public/footer.html"/>
</div>


<script src="/style/js/jquery.min.js"></script>
<script src="/style/js/fx.js"></script>
<script>
    $(function () {
        personalInfo();
        $(".userSearch").click(function () {
            $(this).addClass("active").siblings(".userSearch").removeClass("active");
            var dat = $(this).data("value");
        });

        $(".betNum").each(function () {
            var str = $(this).text();
            if (str.length > 7) {
                $(this).siblings(".NumLink").addClass("on");
            }
        });
        $(".NumLink").click(function () {
            var txt = $(this).prev().data("qzhu");
            $("#layermbox7 .layermcont").text(txt);
            $("#layermbox7").show();
        });

        var txt = $(this).find("option:selected").text();
        $(".fx_c_name").text(txt);
        $(".userSelect").change(function () {
            var val = $(this).val();
            var txt = $(this).find("option:selected").text();
            $(".fx_c_name").text(txt);
        })
    })
</script>

<script>
    //时间的 传值
    function xuanze(a){
        var lotteryclass = $("#caizhong").val();
        var shijian = $("#"+a).attr("data-value");
        var leixing = $(".userSearch.lx.active").attr("data-id");
        window.location.href="/Users/seekOrder/lotteryclass/"+lotteryclass+"/shijian/"+shijian+"/leixing/"+leixing;
    }
    //彩种的 传值
    function xuanze2(){
        var lotteryclass = $("#caizhong").val();
        var shijian = $(".userSearch.times.active").attr("data-value");
        var leixing = $(".userSearch.lx.active").attr("data-id");
        window.location.href="/Users/seekOrder/lotteryclass/"+lotteryclass+"/shijian/"+shijian+"/leixing/"+leixing;
    }
    function xuanze3(b){
        var lotteryclass = $("#caizhong").val();
        var shijian = $(".userSearch.times.active").attr("data-value");
        var leixing = $("#"+b).attr("data-id");

        window.location.href="/Users/seekOrder/lotteryclass/"+lotteryclass+"/shijian/"+shijian+"/leixing/"+leixing;
    }

</script>



</body>
</html>